from serial import Serial
import time
def main():
	s = Serial()#com7
	s.port="/dev/pts/2"
	s.baudrate = 1200
	s.bytesize = 7
	s.stopbits=1
	s.parity='O'
	s.setDTR(1)
	s.open()
	return s
if __name__ == "__main__":
	main()